
<body xmlns="http://www.w3.org/1999/xhtml">
	<h3 align="center"><big>Search</big></h3>
<?php
echo $this->Form->create('Tweet');
echo $this->Form->input('Search' , array());
echo $this->Form->input('TypeOfSearch', array('type'=>'select','options'=> array('Search For Tweets','Search For People'))); 
echo $this->Form->end('Search');
?>

<table>
    <tr>
        <td><h3 align= "center"><big>Search Results</big></h3></td>
    </tr>

	<tr><?php  foreach($tweets as $tweet): ?>
	<td><h3> <?php echo $this->Html->image($tweet['ProfilePic']) ?> </h3><h3> <?php echo $this->Html->link($tweet['name'], array('action'=>'userview1' , $tweet['username'] ,$tweet['name'] , $tweet['key'] , $tweet['accountID'])); ?></h3> <h4><?php echo $this->Html->link($tweet['text'], array( 'action' => 'view' , $tweet['name'] , $tweet['text'] , $tweet['time'] , $tweet['key'] , $tweet['accountID'])); ?></h4> <small><?php echo $tweet['time'] ?></small></td>

</tr>
<?php endforeach; ?>
</table>
</body>